package cn.itcast.demo.web;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping("/abc")
    public ResponseEntity<String> sayHello(@RequestParam("name")String name){
        return ResponseEntity.ok("hello "+name);
    }
}
